package com.wjw.spring5;

/**
 * @author wjw
 * @date 2021年10月26日 19:03
 * 有参构造注入
 */
public class Orders {
    private String name;
    private String address;

    // Constructor有参构造
    public Orders(String name, String address) {
        this.name = name;
        this.address = address;
    }

    public void outOrders() {
        System.out.println("name:" + name + "\n" + "address:" + address);
    }
}
